const Service = require('egg').Service;

class blog extends Service {
    async list(pageNum,pageSize,categoryId) {
        const sendData = {
            pageNum,
            pageSize,
            categoryId,
        };
        return await this.ctx.service.base.getService('/device/blog/list',sendData);
    }
    async listContent(id) {
        return await this.ctx.service.base.getService(	'/device/blog/detail',{ id });
    }
}

module.exports = blog;

/**
 * Created by EDZ on 2018/9/27.
 */
/**
 * Created by EDZ on 2018/10/19.
 */
